﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XMK.Framework.Model
{
    public class ProcInfo
    {
        /// <summary>
        /// 存储过程ID
        /// </summary>
        public int ProcID{ get; set; }
        /// <summary>
        /// 存储过程对应的数据库连接字符串
        /// </summary>
        public string DbConn { get; set; }
        /// <summary>
        /// 存储过程名
        /// </summary>
        public string ProcName { get; set; }
        /// <summary>
        /// 返回对象的子项列表名，分割
        /// </summary>
        public string ListName { get; set; }
        /// <summary>
        /// 返回类型
        /// </summary>
        public ProcType ProcType { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime ModifyTime { get; set; }
        /// <summary>
        /// 接口编号
        /// </summary>
        public string WsID { get; set; }
        /// <summary>
        /// 存储过程对应的传入参数key
        /// </summary>
        public string ParaKey{ get; set; }

        /// <summary>
        /// 存储过程执行的顺序
        /// </summary>
        public int ProcOrder{ get; set; }

        /// <summary>
        /// 返回的列
        /// </summary>
        public List<ProcColInfo> Cols { get; set; }

        /// <summary>
        /// 参数定义
        /// </summary>
        public List<ProcParaInfo> Paras { get; set; }

        /// <summary>
        /// 参数的值
        /// </summary>
        public Dictionary<string, object> ParaValueDict { get; set; }

        public ProcInfo()
        {
            this.Cols = new List<ProcColInfo>();
            this.Paras = new List<ProcParaInfo>();
            this.ParaValueDict = new Dictionary<string, object>();
        }
    }
}
